import Axios from "../../lib/request";

// export const login = function (data) {
//     return Axios.post('/user2/login', data)
// }

// 查询角色列表  
export const getRoleLists = function (data) {
    return Axios.post("/role/list",data);
};
//添加角色信息
export const RoleAdd = function (data) {
    return Axios.post("/role", data);
};
//删除角色信息
export const RoleDelete = function (id) {
    return Axios.get(`/role/delete/${id}`);
};
//修改角色信息
export const RoleUpdate = function (data) {
    return Axios.post(`/role/update`, data);
};
//获取菜单权限
export const getMenuLists = function () {
    return Axios.get(`menu/tree`);
};